//=============================================================================
// Mineable resource in Siege
//=============================================================================
class TFMinerals extends UTGameObjective
	placeable;

var TFStation TFS;
var Pawn Near;
////////////////////////////////////////////////////////Add later when FX exist//////////////////////////////////////////////////
simulated function PreBeginPlay()
{
    //spawn(class'TaskForces.TFMineralFX');
	//spawn(class'TaskForces.TFMineralGlow');

	settimer(10,true);
}

///////////////////////////////////////////////////////Add Sound //////////////////////////////////////////////////////////
function Timer()
{
    local pawn p;
    local controller C;
    foreach WorldInfo.AllControllers(class 'Controller', C)
    {
        p=C.Pawn;
        if(p!=none /*&& Sentinel(p) == none*/ && p.Health>0 && vsize(p.location-location)<196 && p.PlayerReplicationInfo!= none)//Add when sentinel exists//
        {
            tfpri(p.PlayerReplicationInfo).AddRES(50);
            //PlaySound(sound'PickupSounds.LinkAmmoPickup',SLOT_None,0.3);
        }
    }
}

/////////////////////////Find out how to do collision and ambient sounds////////////////////////////////////////////////////////
defaultproperties
{
     bStatic=False
     bHidden=False
     bNoDelete=False
     bAlwaysRelevant=True
     //AmbientSound=Sound'TFMedia.Misc.TFMineralAmb'
     bGameRelevant=True
     //SoundVolume=128
     //SoundRadius=128.000000
     //TransientSoundVolume=0.200000
     //TransientSoundRadius=128.000000
     //CollisionRadius=20.000000
     //CollisionHeight=20.000000
     bCollideActors=True
     bBlockActors=True
    // bBlockPlayers=True
     bProjTarget=True
     //bUseCylinderCollision=True
     //bBlockKarma=True
     //bNetNotify=True
     bNetInitial=True
     bPathColliding=True
     RemoteRole=ROLE_SimulatedProxy
   Begin Object Class=StaticMeshComponent Name=BaseMeshComp ObjName=BaseMeshComp
      StaticMesh=StaticMesh'UN_Cave.SM.Mesh.S_UN_Cave_SM_Crystal'
      Translation=(X=0.000000,Y=0.000000,Z=-65.000000)
      Scale=0.5
   End Object
   Components(0)=BaseMeshComp
}
